﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Announcement._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>房地产登记机构官方网站刊登公告申请表</title>
    <link href="css/Default.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" method="post">
    <header id="top">
		<div class="wrapper">
			<!-- Title/Logo - can use text instead of image -->
			<div id="title">
			<a href="../ApplyList.aspx">
			<img SRC="img/lzfcjys_logo.png" alt="lzfcjys" />
			</a>
			</div>
			<!-- Top navigation -->
			<div id="topnav">
				<a href="#"><img class="avatar" SRC="img/user_32.png" alt="" /></a>
				Logged in as <b>lzfcjys</b>
				<span>|</span> <asp:LinkButton ID="lbtnExit" runat="server" 
                    onclick="lbtnExit_Click">退出</asp:LinkButton><br />
			</div>
			
			
			<!-- End of Aside links -->
		</div>
	</header>
	<div id="pagetitle">
	    <div class="wrapper">
	        <h1>首页 &rarr; <span>公告申请表</span></h1>
	    </div>
	</div>
	
	
    <div id="mainbox">	
    
        <asp:ObjectDataSource ID="odsApplyType" runat="server" DeleteMethod="Delete" 
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="Announcement.DAL.DataSetApplyTypeTableAdapters.T_ApplyTypeTableAdapter" 
            UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_Id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="Type_Name" Type="String" />
                <asp:Parameter Name="Original_Id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Id" Type="Int32" />
                <asp:Parameter Name="Type_Name" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="odsCardType" runat="server" DeleteMethod="Delete" 
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="Announcement.DAL.DataSetCardTypeTableAdapters.T_CardTypeTableAdapter" 
            UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_Id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="CardName" Type="String" />
                <asp:Parameter Name="Original_Id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Id" Type="Int32" />
                <asp:Parameter Name="CardName" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource>
        
        
        <div class="content-box">
						<header>
							<h3>房地产登记机构官方网站刊登公告申请表</h3>
						</header>
        <table width="100%" class="display stylized" style="color:Black">
            <tr>
                <td rowspan="4" width="50px" align="center" style="vertical-align:middle">
                    申<br />请<br />人
                </td>
                <td>
                    姓名（名称）
                </td>
                <td>
                    
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvName" runat="server" 
                        ControlToValidate="txtName" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                    
                </td>
                <td>
                    法定代表人
                </td>
                <td>
                
                    <asp:TextBox ID="txtLegal" runat="server"></asp:TextBox>
                
                    <asp:RequiredFieldValidator ID="rfvLegal" runat="server" 
                        ControlToValidate="txtLegal" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                    
                </td>
            </tr>
            <tr>
                <td>
                    证件类型
                </td>
                <td>
                    
                    <asp:DropDownList ID="ddlCardType" runat="server" DataSourceID="odsCardType" 
                        DataTextField="CardName" DataValueField="Id" >
                    </asp:DropDownList>
                    
                    <asp:RequiredFieldValidator ID="rfvCardType" runat="server" 
                        ControlToValidate="ddlCardType" ErrorMessage="RequiredFieldValidator">请选择一个类型</asp:RequiredFieldValidator>
                    
                </td>
                <td>
                    证件号码
                </td>
                <td>
                
                    <asp:TextBox ID="txtCardNum" runat="server"></asp:TextBox>
                
                    <asp:RequiredFieldValidator ID="rfvCardNum" runat="server" 
                        ControlToValidate="txtCardNum" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                    
                </td>
            </tr>
            <tr>
                <td>
                    代理人
                </td>
                <td>
                    
                    <asp:TextBox ID="txtAgents" runat="server"></asp:TextBox>
                    
                </td>
                <td>
                    联系方式
                </td>
                <td>
                
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                
                </td>
            </tr>
            <tr>
                <td>
                    证件类型
                </td>
                <td>
                    
                    <asp:DropDownList ID="ddlCardType2" runat="server" DataSourceID="odsCardType" 
                        DataTextField="CardName" DataValueField="Id">
                    </asp:DropDownList>
                    
                </td>
                <td>
                    证件号码
                </td>
                <td>
                
                    <asp:TextBox ID="txtCardNum2" runat="server"></asp:TextBox>
                
                </td>
            </tr>
        </table>
        
        <table width="100%" class="display stylized" style="color:Black">
            <tr>
                <td rowspan="3" width="50px" align="center" style="vertical-align:middle">
                    申<br />请<br />公<br />告<br />内<br />容
                </td>
                <td>
                    房屋坐落
                </td>
                <td>
                    <asp:TextBox ID="txtHouseLocal" runat="server" Width="290px"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvHouseLocal" runat="server" 
                        ControlToValidate="txtHouseLocal" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                    
                </td>
                <td>
                    房屋权属证号（登记证明号）
                </td>
                <td>
                
                    <asp:TextBox ID="txtHouseNum" runat="server"></asp:TextBox>
                
                    <asp:RequiredFieldValidator ID="rfvHouseNum" runat="server" 
                        ControlToValidate="txtHouseNum" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                    
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    现申请上述房地产以下内容
                </td>
            </tr>
            <tr>
                <td colspan="4" >
                    <asp:RadioButtonList ID="rblApplyType" runat="server" 
                        DataSourceID="odsApplyType" DataTextField="Type_Name" DataValueField="Id"  Width="100%">
                        
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="rfvApplyType" runat="server" 
                        ControlToValidate="rblApplyType" ErrorMessage="RequiredFieldValidator">请选择一项</asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
        <table width="100%" class="display stylized" style="color:Black">
            <tr>
                <td>
                    申请日期
                </td>
                <td>
                    <asp:TextBox ID="txtApplyDate" runat="server" onclick="WdatePicker()"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvApplyDate" runat="server" 
                    ErrorMessage="RequiredFieldValidator" ControlToValidate="txtApplyDate">
                    *</asp:RequiredFieldValidator>
                    
                </td>
                <td>
                    应付金额
                </td>
                <td>
                <asp:TextBox ID="txtMoney" runat="server" Width="100px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="revMoney" runat="server" 
                    ControlToValidate="txtMoney" ErrorMessage="必须为数字" 
                    ValidationExpression="^\d+(\.\d+)?$">*</asp:RegularExpressionValidator>
                    
                </td>
                <td>
                    是否付款
                </td>
                <td>
                    <asp:CheckBox ID="cbIsPay" runat="server" />
                </td>
            </tr>
        </table>
        
        </div>
        <br />
        <br />
        <center>
            <input type="reset" value="重置" class="btn"/>
            
            <asp:Button ID="btnSave" runat="server" Text="下一步" onclick="btnSave_Click" class="btn btn-green"/>
        </center>
        <br />
    
    </div>
    
    <footer id="bottom">
		<div class="wrapper">
			<p>Copyright &copy; 2010 <b><a href="http://www.lzfcjys.com" title="www.lzfcjys.com">www.lzfcjys.com</a></b> | Icons by <a href="http://www.lzfcjys.com">柳州市房产交易管理网</a></p>
		</div>
	</footer>
	</form>
</body>
</html>
